{extend name="pub/base" /}
{block name="title"}
<title>分类管理</title>
{/block}

{block name="body"}
<section class="Hui-admin-article">
    <nav class="breadcrumb" style="background-color:#fff;padding: 0 24px"><i class="Hui-iconfont">&#xe67f;</i> 首页
        <span class="c-gray en">&gt;</span>
        分类管理
        <span class="c-gray en">&gt;</span>
        分类列表
        <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px"
           href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
    </nav>
    <article class="Hui-admin-content clearfix">

        <div class="panel mt-20">
            <div class="panel-body">
                <div class="clearfix">
							<span class="f-l">
                                <a class="btn btn-primary radius" onclick="editCreate('分类新增','{:url(\'create\')}')">
                                    <i class="Hui-iconfont">&#xe600;</i> 添加分类
                                </a>
							</span>
                    <span class="f-r">共有数据：<strong>{$count}</strong> 条</span>
                </div>
                <div class="mt-20 clearfix">
                    <table class="table table-border table-bordered table-bg table-hover table-sort">
                        <thead>
                        <tr class="text-c">
                            <th width="80">ID</th>
                            <th width="100">名称</th>
                            <th width="100">创建时间</th>
                            <th width="100">修改时间</th>
                            <th width="100">缩略图</th>
                            <th width="200">操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        {volist name="tags" id="vo"}
                        <tr class="text-c">
                            <td>{$vo.id}</td>
                            <td>{$vo.tag_name}</td>
                            <td>{$vo.create_time|date='Y-m-d H:i'}</td>
                            <td>{$vo.update_time|date='Y-m-d H:i'}</td>
                            <td>
                                <img width="25%" class="picture-thumb" src="{$img_site}/static/upload/tags/{$vo.id}.jpg">
                            </td>
                            <td class="f-14 td-manage">
                                <a style="text-decoration:none" class="ml-5" onclick="editCreate('分类编辑','edit?id={$vo.id}')">
                                    <i class="Hui-iconfont">&#xe6df;</i>
                                </a>
                                <a style="text-decoration:none" class="ml-5" onclick="del(this,{$vo.id})" href="javascript:;"><i class="Hui-iconfont">&#xe6e2;</i></a></td>
                        </tr>
                        {/volist}
                        </tbody>
                    </table>
                    {$tags|raw}
                </div>
            </div>
        </div>
    </article>

</section>

{/block}